xsm: Move ACM_DEBUG and printkd() out of public header. They are
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 21 Jul 2009 14:47:41 +0000 (15:47 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 21 Jul 2009 14:47:41 +0000 (15:47 +0100)
private to the ACM implementation within Xen.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/include/public/xsm/acm.h
xen/include/xsm/acm/acm_hooks.h
xen/xsm/acm/acm_core.c

index 48cd1062c7260d2aecbb19b51c4a7333ea276e9e..b6ac8d51301b1d44456dfe2ae612c7c5dc15370a 100644 (file)
 
 #include "../xen.h"
 
-/* if ACM_DEBUG defined, all hooks should
- * print a short trace message (comment it out
- * when not in testing mode )
- */
-/* #define ACM_DEBUG */
-
-#ifdef ACM_DEBUG
-#  define printkd(fmt, ...) printk(fmt, ##__VA_ARGS__)
-#else
-#  define printkd(fmt, ...)
-#endif
-
 /* default ssid reference value if not supplied */
 #define ACM_DEFAULT_SSID  0x0
 #define ACM_DEFAULT_LOCAL_SSID  0x0
index 19e37f9e2eee3bf85690581aa7204ad7105fe035..67bd49f570c4fc198aeaae3aedb75eb449205a93 100644 (file)
@@ -130,11 +130,22 @@ extern struct acm_operations *acm_secondary_ops;
 /* #define ACM_TRACE_MODE */
 
 #ifdef ACM_TRACE_MODE
-# define traceprintk(fmt, args...) printk(fmt,## args)
+# define traceprintk(fmt, args...) printk(fmt, ## args)
 #else
 # define traceprintk(fmt, args...)
 #endif
 
+/* if ACM_DEBUG defined, all hooks should
+ * print a short trace message (comment it out
+ * when not in testing mode )
+ */
+/* #define ACM_DEBUG */
+
+#ifdef ACM_DEBUG
+#  define printkd(fmt, args...) printk(fmt, ## args)
+#else
+#  define printkd(fmt, args...)
+#endif
 
 #ifndef ACM_SECURITY
 
index 3133877cf4063594693237f4e026bd3e7a969b2a..b8b7b4f59cb84f7e7405ff046fb8423e4c3e32b9 100644 (file)
@@ -38,7 +38,7 @@
  *   define/undefine this constant to receive / suppress any
  *   security hook debug output of sHype
  *
- *   include/public/xsm/acm.h defines a constant ACM_DEBUG
+ *   include/xsm/acm/acm_hooks.h defines a constant ACM_DEBUG
  *   define/undefine this constant to receive non-hook-related
  *   debug output.
  */